package base_demo.giftDemo;

public class Demo {
    public static void main(String[] args) {
        //两个人同时送礼品100份,小于10份不在送出
        Myrungift mr = new Myrungift();
        Thread t1 = new Thread(mr);
        Thread t2 = new Thread(mr);

        t1.setName("同学1");
        t2.setName("同学2");

        //启动
        t1.start();
        t2.start();

    }
}
